设备网络SDK开发使用手册 |
[ "ipAddress": "172.6.64.7", /*必填, 设备IPv4地址, string类型, 最大长度为32*/ "ipv6Address": "", /*可选, 设备IPv6地址, string类型, 最大长度为128*/ "portNo": 80, /*可选, 设备端口号, integer32类型*/ "protocol": "HTTP", /*可选, 协议类型: HTTP或HTTPS, string类型, 最大长度为32*/ "macAddress": "01:17:24:45:D9:F4", /*可选, MAC地址, string类型, 最大长度为32*/ "channelID": "1", /*可选, 触发报警的设备通道号, integer32类型*/ "dateTime": "2009-11-14T15:27Z", /*必填, 报警触发时间, ISO8601 time格式, string类型, 最大长度为32*/ "activePostCount": 1, /*必填, 同一个报警已经上传的次数, integer32类型*/ "eventType": "sysStorFull", /*必填, 触发的事件类型: sysStorFull-集群系统存储满异常, versionAbnormal-集群版本异常, nodeOffline-掉线异常, recordCycleAbnormal-录像周期不足, ipcTransferAbnormal-IPC迁移失败, string类型, 最大长度为128*/ "eventState": "active", /*必填, 事件触发状态: active-触发, inactive-未触发(表示心跳数据), string类型, 最大长度为32*/ "eventDescription": "sysStorFull", /*必填, 事件描述: sysStorFull-集群系统存储满异常, versionAbnormal-集群版本异常, nodeOffline-掉线异常, recordCycleAbnormal-录像周期不足, ipcTransferAbnormal-IPC迁移失败, string类型, 最大长度为128*/ "clusterCapacityInfo": { /*可选,集群存储信息,当eventType为sysStorFull有效*/ "curCapacity": 2048, /*可选,当前存储容量,单位:MB,integer*/ "restCapacity": 2048, /*可选,剩余存储容量,单位:MB,integer*/ }, "versionInfo": { /*可选,版本信息,当eventType为versionAbnormal时有效*/ "version": "V4.5.10", /*可选,当前版本号,string*/ "exceptionNum": 5, /*可选,集群中版本异常节点数量,integer*/ "exceptionList": [{ "node": { "MACAddress": "", /*可选, MAC地址, string类型*/ "ipAddress": "", /*必填, 设备IPv4地址, string类型*/ "ipv6Address": "", /*可选, 设备IPv6地址, string类型*/ "nodeDeviceVersion": "" /*可选,节点异常版本号,string*/ } }] }, "offlineNodeInfo": { /*可选,掉线信息,当eventType为 nodeOffline 时有效*/ "offlinedNum": 5, /*可选,已掉线设备数,integer*/ "deviceOfflinedList": [{ "node": { "ipAddress": "", /*必填, 设备IPv4地址, string类型*/ "ipv6Address": "", /*可选, 设备IPv6地址, string类型*/ } }] }, "StorageCycle": { /*可选,存储周期,当eventType为recordCycleAbnormal有效*/ "userConfig": 6, /*可选,用户配置存储周期,单位:天,integer*/ "estimated": 5, /*可选,根据负载估计的存储周期,单位:天,integer*/ "totalCapacity": 2048, /*可选,集群存储总容量,单位:MB,integer*/ "quotaCapacity": 2048, /*可选,当前配额所需存储容量,单位:MB,integer*/ }, "ipcTransferInfo": { /*可选,IPC迁移信息,当eventType为ipcTransferAbnormal时有效*/ "ipcTransferAbnormalNum": 5, /*可选,IPC迁移失败个数,integer*/ "ipcInfoList": [{ "node": { "ipAddress": "", /*必填, 设备IPv4地址, string类型*/ "ipv6Address": "", /*可选, 设备IPv6地址, string类型*/ "channel": 5 /*可选,通道号,integer*/ } }] }, } ]
NET_DVR_SetDVRMessageCallBack_V50